// 产品列表模型
class ProductItemModel {
  String imageUrl;
  String type;
  String name;
  String desc;
  String point;
  ProductItemModel(
      {this.imageUrl, this.type, this.name, this.desc, this.point});
  factory ProductItemModel.fromJson(dynamic json) {
    return ProductItemModel(
        desc: json['desc'],
        name: json['name'],
        imageUrl: json['imageUrl'],
        point: json['point'],
        type: json['type']);
  }
}

// 产品列表数据转换
class ProductListModel {
  List<ProductItemModel> data;
  ProductListModel(this.data);
  factory ProductListModel.fromJson(List json) {
    return ProductListModel(
        json.map((i) => ProductItemModel.fromJson((i))).toList());
  }
}
